package com.koron.css2.clientCenter.Enum;

public enum PushOpEnum {
	INSERT(1, "insert"),

	UPDATE(2, "update"),
	
	DELETE(3,"delete");

	private final Integer type;

	private final String opType;

	private PushOpEnum(final Integer type, final String opType) {
		this.type = type;
		this.opType = opType;
	}

	public static String getOpType(Integer type) {
		PushOpEnum[] pushOpEnums = values();
		for (PushOpEnum pushOpEnum : pushOpEnums) {
			if (pushOpEnum.type().equals(type)) {
				return pushOpEnum.opType();
			}
		}
		return null;
	}

	public Integer type() {
		return this.type;
	}

	public String opType() {
		return this.opType;
	}
}
